﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
    	<title>线程池列表</title>
<jsp:include page="common/header.jsp"/>
	</head>
	<body>
<jsp:include page="common/body-header.jsp"/>
		<b>线程池列表</b>
		<table>
			<tr>
				<th>池名称</th>
				<th>ActiveCount</th>
				<th>CompletedTaskCount</th>
				<th>CorePoolSize</th>
				<th>LargestPoolSize</th>
				<th>MaximumPoolSize</th>
				<th>PoolSize</th>
				<th>Queue</th>
				<th>TaskCount</th>
				<th>Shutdown</th>
				<th>Terminated</th>
				<th>Terminating</th>
			</tr>
			<c:forEach var="e" items="${executorService.executors}">
			<tr>
				<td>${e.key}</td>
				<td>${e.value.activeCount}</td>
				<td>${e.value.completedTaskCount}</td>
				<td>${e.value.corePoolSize}</td>
				<td>${e.value.largestPoolSize}</td>
				<td>${e.value.maximumPoolSize}</td>
				<td>${e.value.poolSize}</td>
				<td>${fn:length(e.value.queue)}</td>
				<td>${e.value.taskCount}</td>
				<td>${e.value.shutdown}</td>
				<td>${e.value.terminated}</td>
				<td>${e.value.terminating}</td>
			</tr>
			</c:forEach>
		</table><br>
<jsp:include page="common/body-footer.jsp"/>
	</body>
</html>
